<?php 

$arr = [454,435,78,65,0,[89,67,5,[67,56,[67,89,67],45],65,43]];


function qiuuo($arr)
{

	foreach ($arr as $k => $v) {
		if(is_array($v)){
			$arr[$k] = qiuuo($v);
		}elseif($v%2==1){
			$arr[$k] = $v*2;
		}
	}

	return $arr;
}

var_dump(qiuuo($arr));













 ?>